package com.artPreter.controller;


import com.artPreter.pojo.Article;
import com.artPreter.pojo.ArtworkOtherPic;
import com.artPreter.pojo.Result;
import com.artPreter.service.IArtworkOtherPicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 艺术品额外图片表 前端控制器
 * </p>
 *
 * @author jarvis
 * @since 2025-01-14
 */
@RestController
@RequestMapping("/artworkOtherPic")
public class ArtworkOtherPicController {

    @Autowired
    private IArtworkOtherPicService artworkOtherPicService;

    /**
     * 获取系统设置列表
     * @param
     * @return
     */
    @PostMapping("/getList")
    public Result getList(@RequestBody ArtworkOtherPic artworkOtherPic){
        List<ArtworkOtherPic> result = artworkOtherPicService.getList(artworkOtherPic);
        return Result.success(result);
    }

    @PostMapping("/save/artworkOtherPic/list")
    public Result saveSortInArtworkOtherPic(@RequestBody List<ArtworkOtherPic> artworkOtherPicList){
        artworkOtherPicService.saveSortInArtworkOtherPic(artworkOtherPicList);
        return Result.success();
    }





}
